import 'package:flutter/material.dart';
import 'package:lai_zhan/common/style/AppStyle.dart';
import 'package:lai_zhan/common/config/Config.dart';

//用户头像
class UserIcon extends StatelessWidget {

  double size = AppSize.getRealWidth(65);
  String imageUrl;

  UserIcon({this.size,this.imageUrl=""});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return ClipOval(child: FadeInImage.assetNetwork(placeholder: Config.DEFALUT_USER_ICON,
      image: imageUrl,width: size,height: size,),);
  }
}